#include<iostream>
#include<list>
#include "department.h"
using namespace std;
Department::Department(string name,double salary){
    this->name = name;
    this->sum_salary = salary;

}

void Department::display(){
    cout <<"=========================="<<endl;
    cout <<"===名称："<<this->name<<endl;
    cout <<"===总收入："<<this->sum_salary<<endl;
    cout <<"=========================="<<endl;
}

void Department::set_salary(double s){
    this->sum_salary += s;
}

string Department::get_name(){
    return this->name;
}

